package com.financing.platform.dao.impl;

import com.financing.platform.dto.UserInfoDTO;
import org.springframework.stereotype.Repository;

import com.financing.platform.dao.IFaNoticeDao;
import com.financing.platform.dto.FaNoticeDTO;
import com.financing.platform.util.SqlName;
import com.financing.platform.vo.FaNoticeVO;

@Repository("faNoticeDaoImpl")
public class FaNoticeDaoImpl extends BaseDaoImpl implements IFaNoticeDao {
	
	@Override
	public int addFaOrderNotice(FaNoticeDTO notice) throws Exception{
		return this.sqlMapClient.update(SqlName.addFaOrderNotice, notice);
	}
	
	@Override
	public FaNoticeVO queryOrderDetailByOrderId(String id) throws Exception{
		return (FaNoticeVO)this.sqlMapClient.queryForObject(SqlName.queryOrderDetailByOrderId, id);
	}

	@Override
	public UserInfoDTO queryUserInfoByOrderId(String orderId) throws Exception {
		return (UserInfoDTO)this.sqlMapClient.queryForObject("notice.queryUserInfoByOrderId", orderId);
	}
}
